<?php

require_once './include/common.inc.php';
require_once 'left.php';
require_once 'right.php';

$page_title = 'Acuity World WebShop';
$menu_id = 0;
$menu_str = PrintMenu();

foreach ($RANK_ARY as $k=>$v) {
    $rank_str = 'commission_rates_' . strtolower($v);
    $tmp = getMvalue($rank_str);
    list($p, $sp, $t, $pcsd1, $pcsd2) = explode("||", $tmp);
    $comminssion_ary[$v][1] = $p;
    $comminssion_ary[$v][2] = $sp;
    $comminssion_ary[$v][3] = $t;
    
    if (!empty($pcsd2)) {
        $comminssion_ary[$v][4] = $pcsd1 . " + ". $pcsd2;
    } else {
        $comminssion_ary[$v][4] = $pcsd1;
    }
}

$comminssion_ary['name'][1] = 'Products';
$comminssion_ary['name'][2] = 'Special Products';
$comminssion_ary['name'][3] = 'Trainings';
$comminssion_ary['name'][4] = 'Promoter Commission Settlement Dates';

require_once PrintEot('header');
require_once PrintEot('left');
require_once PrintEot('general_promoter_agreement');
require_once PrintEot('right');
require_once PrintEot('footer');

?>